/**
 * Class desribing human
 * 
 * @param name
 *            Name of the human
 * @param phoneNumber
 *            Phone number of human being
 * @author Timur Suleimanov
 * 
 */
public abstract class Person implements Finder {
	private String name;
	private String phoneNumber;

	public Person(String name, String phoneNumber) {
		this.name = name;
		this.phoneNumber = phoneNumber;
	}

	public abstract String getDescription();

	public String getName() {
		return name;
	}

	public String setName(String name) {
		return this.name = name;
	}

	public String getPhoneNumber() {
		return phoneNumber;
	}

	public String setPhoneNumber(String phoneNumber) {
		return this.phoneNumber = phoneNumber;
	}

	public boolean equals(Object otherObject) {
		if (this == otherObject)
			return true;
		if (otherObject == null)
			return false;
		if (getClass() != otherObject.getClass())
			return false;
		Person other = (Person) otherObject;
		return name.equals(other.name) && phoneNumber.equals(other.phoneNumber);
	}
}
